package com.zhongyouyun.wx.wxapplet.lbyc.controller;


import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.zhongyouyun.admin.model.UserModel;
import com.zhongyouyun.cqyc.model.NoticeTypeModel;
import com.zhongyouyun.lbyc.pojo.CustomModernEvaluatePojo;
import com.zhongyouyun.lbyc.service.CustomModernEvaluateService;
import com.zhongyouyun.other.model.Result;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.apache.shiro.SecurityUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;
import java.util.Map;

@RestController
@RequestMapping("/mobile/wx_app")
@Api(value = "烟草灵宝-微信小程序评价相关接口", tags = {"灵宝城区-微信小程序评价相关接口"})
public class WxCustomModernEvaluateController {
    @Autowired
    private CustomModernEvaluateService customModernEvaluateService;

    @GetMapping("/findjihuan")
    @ResponseBody
    @ApiOperation(value = "获取当前客户没评价的列表", notes = "获取当前客户没评价的列表")
    public Result<List<Map<String,Object>>> findjihuan() {
        List<Map<String,Object>> list = customModernEvaluateService.selectjihuan();
        if (null != list && list.size() > 0) {
            return Result.<List<Map<String,Object>> >builder().message("成功").status(0).data(list).build();
        } else {
            return Result.<List<Map<String,Object>> >builder().status(0).build();
        }
    }
}
